package com.itdct.onflow.core.mapper

import com.baomidou.mybatisplus.core.mapper.BaseMapper
import com.itdct.onflow.core.entity.IdEntity

import org.apache.ibatis.annotations.Param
import org.apache.ibatis.annotations.Select


/**
 * @author DCTANT
 * @version 1.0
 * @date 2022/9/9 14:04:48
 * @description
 */
interface BaseMapper<T : IdEntity> : BaseMapper<T> {
    @Select("\${nativeSql}")
    fun nativeSql(@Param("nativeSql") nativeSql: String?): Any?

    companion object {
        const val DEFAULT_BATCH_SIZE: Int = 100000
    }
}
